0a82ca5767f78520716f887cdea3f69b4ceb53ac,gt-fhir-entities/src/main/java/edu/gatech/i3l/fhir/dstu2/entities/Observation.java,Observation,getRelatedResource,#,397

Before Change


								QuantityDt quantity = new QuantityDt(ob.valueAsNumber.doubleValue());
								// Unit is defined as a concept code in omop v4, then unit and code are the same in this case
								quantity.setUnit(ob.unit.getConceptCode());
								quantity.setCode(ob.unit.getConceptCode());
								quantity.setSystem(ob.unit.getVocabulary().getSystemUri());
								compValue = quantity;
								if (ob.rangeLow != null)
									comp.getReferenceRangeFirstRep().setLow(new SimpleQuantityDt(ob.rangeLow.doubleValue()));

After Change


							if (ob.valueAsNumber != null) {
								QuantityDt quantity = new QuantityDt(ob.valueAsNumber.doubleValue());
								// Unit is defined as a concept code in omop v4, then unit and code are the same in this case
								if (ob.unit != null) {
									quantity.setUnit(ob.unit.getConceptCode());
									quantity.setCode(ob.unit.getConceptCode());
									quantity.setSystem(ob.unit.getVocabulary().getSystemUri());
								}
								compValue = quantity;
								if (ob.rangeLow != null)